package com.ddwl.schema.bo.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.List;

/**
 * 类InquirySkuPriceBo.java的实现描述：查询商品价格
 *
 * @author zach
 * @Date :2020-06-11 10:37.
 */
@Data
@ApiModel("查询商品价格入参")
public class QuerySkuPriceBo {

    /**
     * key    skuId
     * value  商品件数
     */
    @NotNull
    @Size(min = 1)
    @ApiModelProperty("商品信息")
    private List<Sku> skus;

    @ApiModelProperty("用户ID")
    private String userId;

    @ApiModelProperty("平台津贴金额")
    private BigDecimal subsidyAmount;

    @Data
    public static class Sku{

        @ApiModelProperty("skuId")
        private String skuId;

        @ApiModelProperty("数量")
        private Integer qty;

        @ApiModelProperty("商品砍价活动订单ID")
        private String bargainOrderId;

        @ApiModelProperty("商品秒杀订单ID")
        private String killOrderId;
        @ApiModelProperty("限时购活动")
        private String limitTimePurActiveOrderId;
    }

}
